How to Install Python Modules via pip

In this article, we will show you how to install Python modules via pip in PythonClusters runtime environment.

1. Locate your target deployment

Log in to the Control Panel and locate your target deployment on the Home page or the My Applications page.

2.Go to the Shell / SSH page

Go to the Shell / SSH page by clicking the "Manage" button on the Home page or the My Applications page.

3. Connect to WebShell

Click the “Connect” icon to launch a shell session.

4. Activate a Python virtual environment

In the home directory(/cloudclusters), execute the command below to activate a python virtual environment:

source venv3.8/bin/activate

5. Install Python modules via pip

In this example, we will install the python img2pdf package. The installed python packages will be stored in /cloudclusters/odoo/venv/lib/python3.7/site-packages/

Issue the command below to install the Python imga2pdg package

pip install img2pdf

Or you can install a specified version of the python img2pdf package as below.

pip install img2pdf==0.4.0

6. Check the installed Python modules

Execute the command below to check the installed python packages

pip list

7. Exit the Python virtual environment

Execute the command below to exit the python virtual environment:

deactivate

Copyright © 2021 Cloud Clusters Inc. all right reserved,powered by GitbookRevised on 08/19/2021

results matching ""

    No results matching ""